import request from '@/utils/request'

// 查询患者消费明细列表
export function listPatientCosts(query) {
  return request({
    url: '/system/PatientCosts/list',
    method: 'get',
    params: query
  })
}

export function getPaid(Id) {
  return request({
    url:'/system/PatientCosts/edit',
    method: "get",
    params: {
      Id
    }
  })
}

// 查询患者消费明细详细
export function getPatientCosts(Id) {
  return request({
    url: '/system/PatientCosts/' + Id,
    method: 'get'
  })
}

// 新增患者消费明细
export function addPatientCosts(data) {
  return request({
    url: '/system/PatientCosts',
    method: 'post',
    data: data
  })
}

// 修改患者消费明细
export function updatePatientCosts(data) {
  return request({
    url: '/system/PatientCosts',
    method: 'put',
    data: data
  })
}

// 删除患者消费明细
export function delPatientCosts(Id) {
  return request({
    url: '/system/PatientCosts/' + Id,
    method: 'delete'
  })
}
